﻿using BarcodeDelay;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JTParcrelHelper.view
{
    public partial class FrmSpeedSelect : Form
    {
        public FrmSpeedSelect()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                int parseNum = Convert.ToInt32(tbSpeed.Text);
                if(parseNum<=0)
                {
                    return;
                }
                StoParams.Instance.speed = parseNum;
                this.Close();
            }
            catch(Exception ex)
            {
                MessageBox.Show("速度只能是数字");
            }

        }
    }
}
